//
//  TableViewCell.m
//  muscleLife
//
//  Created by xalo on 16/5/3.
//  Copyright © 2016年 HeavenAndHell. All rights reserved.
//

#import "TableViewCell.h"
#import "AdjectiveModel.h"

@implementation TableViewCell

-(void)setCellWithAdjectModel:(AdjectiveModel *)moodel{
    [self.myImageView sd_setImageWithURL:[NSURL URLWithString:moodel.cover_img]];
    self.titleLabel.text=moodel.title;
    self.subTitleLabel.text=moodel.sub_title;
    self.viewLabel.text=moodel.subject_name;
}
-(void)settwoCellWithAdjectModel:(AdjectiveModel *)moodel{
    [self.myImageView sd_setImageWithURL:[NSURL URLWithString:moodel.cover_img]];
    self.titleLabel.text=moodel.title;
    self.subTitleLabel.text=moodel.sub_title;
    self.viewLabel.text=moodel.view_cnt;
    
}
- (void)awakeFromNib {
    // Initialization code
    self.viewLabel.layer.borderColor=(__bridge CGColorRef _Nullable)([UIColor blueColor]);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
